<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>login</title>
</head>
<body>
<div class="container">
    <form class="form-horizontal" th:action="@{/login}" method="post">
        <label style="color: red; font-size: small">[[${msg}]]</label>
        <div class="form-group">
            <label for="inputEmail3" class="col-sm-2 control-label">[[#{login.email}]]</label>
            <div class="col-sm-10">
                <input type="email" name="name" class="form-control" id="inputEmail3" th:placeholder="#{login.email}">
            </div>
        </div>
        <div class="form-group">
            <label for="inputPassword3" class="col-sm-2 control-label">[[#{login.password}]]</label>
            <div class="col-sm-10">
                <input type="password" name="password" class="form-control" id="inputPassword3" th:placeholder="#{login.password}">
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
                <div class="checkbox">
                    <label>
                        <input type="checkbox" th:text="#{login.remember}">
                    </label>
                </div>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
<!--                <button type="submit" class="btn btn-default" th:name="#{login.btn}"></button>-->
                <button type="submit" class="btn">[[#{login.btn}]]</button>
                <p>@2021-2022</p>
                <a class="btn btn-sm" th:href="@{/login(l='zh_CN')}">中文</a>
                <a class="btn btn-sm" th:href="@{/login(l='en_US')}">English</a>
            </div>
        </div>
    </form>
</div>
</body>
</html>